package com.graduation.mybatis.mapper;

import com.graduation.mybatis.bean.News;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.graduation.mybatis.bean.NewsDTO;
import com.graduation.mybatis.bean.NewsListDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 23726
* @description 针对表【news】的数据库操作Mapper
* @createDate 2025-05-01 16:18:02
* @Entity com.graduation.mybatis.bean.News
*/
public interface NewsMapper extends BaseMapper<News> {
    News selectById(Long id);
    List<String> selectImagesByNewsId(Long id);
    List<NewsListDTO> selectNewsList(@Param("offset") int offset, @Param("pageSize") int pageSize);
}




